Delete unnecessary code from frontend.js (Mojito)