javascript bugfix: wrong selector close #350

correct wrong selector
Merge local branch to fix #350