Learning how to use phonegap (badly)