JavaScript: How to validate an email address