oh, reading this now I guess all of the functions are nested inside window.format so this just needs conversion to a require.js `format` module.