Removed unused functions and vars
Added a comment about how the .jshintrc file is searched for
Refactor .jshintrc search loop a bit to use less code