JS bug fixes for count update
Merge pull request #175 from saumishr/master

JS bug fixes for count update