default to global masonry if it exists, else load commonjs version