now angular js front end and sinatra backend can talk to each other