fixing main.js