Poking with canvas on JavaScript