added global.js; cleanup; more JsDuckumentation