Fixing main.js