Synchronize Mocha version across test environments
Include shims for ES5 methods

This will make it possible to use the UI in legacy browsers and
PhantomJS without additional libraries.