Remove extra comma.
Update mocha to use dot reporter.
Make formatting and code style changes.