Compatible with Phonegap 3.0