simple javascript client side date validation