Update app/assets/javascripts/init.js.erb

fix Modal window