fixed js and added to gemfile