making fully phonegap ready