small changes in application.js and sessions_helper.rb syntax