js to improve masonry