Barcode scanning with webcam using HTML5 JS