Code cleanup in formatters.js.