Hacking on HTML canvas