Refactored the visualization into one function mindWeb on window