sinatra - angularjs