Legacy browser support

Some old browsers don't support document.createEvent and definition of
listener as an EventListener object.
Browsers such as Symbian S60 Webkit don't support mousedown/up events.
We can only use click instead.