Time to try to work out how to re-integrate the visualizer basics

- No js files outside of setup changed yet, but hit a place
where canvas lib needs to be reactivated.
- visualizer.js activated.
- Stuff moved inside $(document).ready().
- Reactivated things that did not seem to depend on ace.
- Global vars made global again, except one that needed a var
declaration - will take care of that when it comes up.