Make Modals work though application.js file