Removes non-ES5-isms from email front end