Added JS date restrictions