Make the RESTAdapter work on the phone in Phonegap