Clean up gemfile and fix javascript loading