javascript email sent alert when email is sent