minor js fixes
Merge pull request #1 from keligijus/fixes1.0

minor js fixes