sinatra server for phonegap app