Bug 844426: [email] removes non-ES5-isms from front end

Just removes the non-ES5 things from the front end code. The back end changes for the scripts in js/ext will be part of a separate change being done by asuth.