improved phonegap/cordova section, added titanium section