check headers

Сheck the headers in the request

And maybe add Gulp with its plugin for jshint https://www.npmjs.com/package/gulp-jshint/ to automate review? It could be used automatically on new commits via Travis-CI.