How can I use Masonry plugin in main.js

I know that I can use Bower (I tested it and it works) and I know that my idea is not recommended but in my situation it will be the best option. I want to use the built-in WordPress version of Masonry, and I want to know how can I do this.

Why? Because if I use Bower - it compile Masonry library with main.js and finally main.js file will be too big.
Masonry effect will be using only on one page on my website and I want to enqueue it (masonry.pkgd.min.js) only on this page, and in main.js file I want to add condition:

if ( $('.masonry').length ) { /* turn on masonry effect */ }