Create functionscript.js