renamed index.js to main.js, because index is a name used for html files not for executable scripts;