Trying to learn phonegap, used Christophe Coenraets' example at http://coenraets.org/blog/cordova-phonegap-3-tutorial/