FINALLY it works my god that took forever

Debugged most of it so it should work -  shows a gray canvas with a square that changes color every so often. Actions print to the JavaScript console.