barcode scanner to ajax json req