one line cleanup in JS modal code
Merge pull request #1205 from tuff-ghost/issue_3380g

3380: remove modal code line which makes no sense