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".