Making sure it works with phonegap