Support voor OO and some minor changes

- Added support for OO-structure in Javascript.
- Changed click.js to common-events.js and added some common known event
shortcuts.