Refactor code to pass JSHint without warnings (except for variable
naming warnings for Zotero global variables). Include .jshintrc to show
the options used.