Rewrite application.js