Added jshintConfig options and fixed JSHint errors.