phonegap structure