rewrite Application.js, new routing, etc
fix routes in application.js