Javascript code for validating email id