js added for masonry layout