changed main.js to src/init.js