Fix barcode generation for receiving receipts
Minor code cleanup in items management javascript