Married dating ontario validating integer in javascript