You can see http://www.lagrangesystems.com/ and http://www.lagrangesystems.com/resources/ if you go into the console and log the Lagrange object on those two pages. I have separate files for page specific javascript that I chain onto the global object. I just load those separately, though as its a small site. I feel like this separates concerns and potential conflicts. 

If I thought the application was going to be larger/more complex, I'd strongly consider using a more opinionated framework to build the JS in, depends on the project. Using Require and building all site JS into separate modules and loading that way would be another strong option to prevent any blocking downloads and conflicts.

Just learned how to do this at QuickLeft, I'm not sure what pattern it would be.