Update formatter.js to conform to new style.