move script from aplication layout to my_javascripts.js