An advanced barcode-scanner written in JavaScript