changed to phonegap file structure