Right now the most JavaScript heavy part of In-Portal is an Admin Console. It works, but it can be better structured internally.
Currently we have 2 major problems in JavaScript:
- polluting global scope (every JS file, that is included is adding some new functions/classes to globals scope and other JS hoping that these functions/classes will just be there when they need them)
- including all javascript files regardless of their actual usage (http://requirejs.org/ can help here)
- not using jslint to adhere JavaScript creator (Douglas Crockford) recommendations