make app global variable and modify .jshintrc