it is in an anonymous function because that function is passed to a jQuery call `$(function(){ ... })`. What that does is call the anonymous function on DOMContentLoaded.

That is needed because `GOVUK.init` doesn't delay the call so in theory this could be called before the DOM tree is rendered.