Phonegap 3 plugin