require() in script.js. enabling using the require in events!