Javascript for validating email with regular expression