It's not undeclared, req definitely exists. There's no way jshint could catch this without running the program