Phonegap application that connects to Wordpress through REST Api