add tests to linting
use global .jshintrc
fix whitespacing
remove superfluous path module
cleanup should redefinition