Scale fixes.

* Coords hover was using the wrong scale, thus the wrong color was selected from the canvas.
* Refactored scaling functions to also accept arrays and not rely on `this`. (`this * x` is really weird...)
* Calculate scaling factors based on DOM instead of hard-coding them.