Added Cordova code from http://stackoverflow.com/questions/10945643/correct-way-of-using-jquery-mobile-phonegap-together