JavaScript

- work against ListView, mostly readability/codestyle
- the menu for the selected tab is now grouped
- added some functions that are unused .. yet
batch changes

- TYPEID_* => TYPE_
- AddSelfToJScript => AddGolbalsToJScript
- require, require_once, include with or without brackets => require <file>;