moved the JS part from views/episopass.erb to javascripts/episopass.js