see http://tech.pro/blog/1704/2-ways-to-get-started-with-phonegapapache-cordova