I think it's better to define these JS in application.js