enabled loading of jquery and any other third party js library. And did some (very) initial refactoring toward testable object oriented javascript.
after merge