Javascript code for validating email address