test case of using angular / js to send and receive data from sinatra