Separated functions, expanded canvas

Mostly just to see how to do it. I put all global variables into
globalvariables.js, and put most of the functions into their own
separate .js files.
I also edited the canvas to be bigger, to see what had to be taken into
consideration for it.