Update to work with Phonegap 2.2 - 2.9 plugin syntax