Validating email address in javascript