change for phonegap

this version can be used successfully with iphone simulator