Updated readme and license. Minor refactoring. Removed uiJs.js.