JavaScript: check apriopriate birth date