moved the profile javascript out of application.js