Added outputscript for main.js
update index to use proper script file