Tweaking for Phonegap 3.0