Remove unnecessary JS from main.js