restored Masonry script