Fix missing module.exports from format.js

For completeness, we should assign something to `modules.exports`, somehow I missed that in `format.js`. This PR should fix that.