let's make it phonegap ready