revert js for masonry