Javascript Date timeToJSON()
timeToJSON()
Date.prototype.timeToJSON = function() { return this.toLocaleTimeString().substring(0,5); };