Update scripts.js

When "use strict" is set, then `this` would be undefined. This can happen, e.g., if the component is embedded into some single file with the global "use strict".
Merge pull request #79 from tenbits/patch-1

Exports: this is undefined with "use strict"