is_email for JavaScript