Javascript Date olderThan(minutes)
Date.prototype.olderThan = function(minutes) { var now = new Date(); return now.getTime() - this.getTime() > minutes*60*1000 };