changed main.js to right folder
Added require.js to index.php