Removed unused variable key per @YuppY, updated the jQuery reference to be on the global scope, updated linting to catch these issues.