jshint; bugix, undefined function