Change README
JS refactoring:
1. Make modules less related to each other. Remove unnecessary global vars
2. Make [dom] module cache selecting results in vars;
JS refactoring accordingly JS.lint and JS.hint recommendations
Refactoring and code style