Following a cordova single page app tutorial