rename jscript to main in index file