javascript racer within sinatra framework to include a backend