Javascript Date equals(otherDate)
Date.prototype.equals = function(otherDate) { return this-otherDate == 0; }