removed unused javascript. Fixes #998
Merge pull request #1012 from ostcar/issue_998

removed unused javascript. Fixes #998