Simple WP ResfFul API Phonegap implementation