Added rack-cors to gemfile and ran bundle install to update Gemfile.lock
Refactored gemfile