foundation of barcode clientside