Adds preventDefault to Trainer.js and removes mailer config that is no longer needed.