Example code from the internal Apache Cordova training event April 24th 2014