#6353: tweak `trac.web.chrome` changes, in fact we always need babel.js in order to have `_` and `babel.format` defined and working.
Adding some fallback methods instead would have worked for `_` and `ngettext`, but for `babel.format` this needed too much copying from babel.js, so just include it.