Where to add Typekit, window.onload, etc?

I followed this thread (Error when masonry installed with bower + gulp) and have successfully got Masonry working with some additional _main.js edits. Thank you, @tobyl for your help!