add utility code for javascript client, and endpoint for requests in sinatra
remove stupid unecessary file