My Dec2Time App rewritten in JavaScript using Cordova