copy mailer from hw1, edit js for mailer, edit mailer.php