phonegap js drupal app