Fixing JS bug
Merge pull request #10 from vad710/master

Fixing JS bug