[javascript-hint addon] Remove some broken and infinite-loopy code

Issue #1884