Add masonry js behavior to index pages