Rewrite public/js/app.js