Fixed invalid .jshintrc and lint errors
Small code cleanup