loading jquery before masonry