moved html's JS to application.js