Fixed a bug with the email sending ajax script