In Angular they place inner functions at the end of the outer function. See https://github.com/angular/angular.js/blob/master/src/ng/location.js#L592 for example. I like it. I don't know whether we want to have some guidelines for things like that.