modified main.js again