base phonegap app structure