add js barcode checking

doesn't keep you from entering an invalid barcode, but helps double
check what you entered.

its possible this doesn't work for all barcodes. i have no idea

fixes #72