First crack at turning this into a cordova app. Still some work to do.