Added dates in JavaScript