Modification for phonegap