Visualize Is Not Defined Javascript