A copy of http://coenraets.org/blog/phonegap-tutorial/