Remove unused javascript

/CC @cvrebert @fat @mdo 

This is a partial fix for #12884