Changed $.toJSON() to JSON.stringify() in manual barcode_js_spec