Ensure document has loaded before running masonry