adding a main.js script file