moved js out of application.js