AngularJS web application with a Ruby backend(sinatra)