changing to phonegap file