edit application.js mapping fxn.