added clearallproperties in barcode_js_spec.js