mailer updates, javascript, add terms