Format code, and fix jshint warnings.