Would probably worth it to run jshint against this.