Clean up format.js, remove defaults hash, delete dead code