Added ability to bind to click event

For enabling testing in browsers with python SimpleHTTPServer.