Update code to OOP

Now I'm starting to doubt myself. Doesn't Cordova allow OOP as we've been taught during our course of Front End 2? Eitherway, as with everybody else, I propose using a namespace to avoid collisions, and with that the Object-Orientated way of programming as we've been taught. Check out my code at, just above your var app;.