Deleted duplicate code in Visualizer.js