Update masonry script