moving main.js to webroot