Validating checkbox in javascript definition of dating alias