Script doesn't work with asynchronous HTML insertion

 After creating and inserting the HTML into the DOM, initialize the script with 'new window.scrollReveal()'