Following a tutorial from: http://coenraets.org/blog/phonegap-tutorial/