jshint common controller