added phonegap dependancy. debugging child php function