Cost of radio carbon dating regular expression for validating date javascript