Added jshintrc for more options and fixed linting errors