fix js for mailer, fix mailer.php