perform jshint and jscs, skip redirect when xhr