I usually (1) group them with their respective code and (2) put them below so I see teh real "working" JS right away.  Much like we did in wiki.js, etc.

In a perfect world, this would all be modular and we'd not be seeing this mess -- some of this will be rewritten / organized with move to Dojo.