Open hinted link via click event from JavaScript.

If the link has no url source, we can't open it using the logic in the hint.c
file. So we create the mouse event to open also links that have only
JavaScript event listeners attached.
Moved hint mode and usage params to the hint instantiation.

It's better to set those settings to the constructor of the hinting object
instead of giving this to the hints create function. Also the config object
was emoved to keep the JavaScript a little smaller.