creating an ocr scanner app with html and javascript