small fixes
Merge pull request #9 from antoan-angelov/js-code

JS code fixes