Hooked up AI and Visualizer calls in submit.js