Remove unused javascript

/CC @cvrebert @fat @mdo 

Fixes #12884.