FCO hack: Ruby backend, Phonegap application