clean up index.html by adding a visualizer object