Got courageous and cleaned code with JSLint.
Changelog updated