We usually use [jshint](http://jshint.com/about/) to detect theses. Would it be reasonable to hook that into the `loop` module inside Firefox?