Simple javascript code that helps with barcode scanners.