changed main.js