Generalizing test functions, bug fix.

Now there is a list of test functions, and the menu to call
each one of them is generated dynamically.

Coordinate of click event has been changed to clientX, clientY.
This way even when the page is scrolled, clicking on
squares functions accurately.