diff --git a/chrome/content/zotero/containers/tagSelector.jsx b/chrome/content/zotero/containers/tagSelector.jsx
index 192dbd5f8f..834f46bfe9 100644
--- a/chrome/content/zotero/containers/tagSelector.jsx
+++ b/chrome/content/zotero/containers/tagSelector.jsx
@@ -1,6 +1,8 @@
 /* global Zotero: false */
 'use strict';
 
+(function () {
+
 const React = require('react');
 const ReactDOM = require('react-dom');
 const PropTypes = require('prop-types');
@@ -742,3 +744,5 @@ Zotero.TagSelector = class TagSelectorContainer extends React.PureComponent {
 		onSelection: PropTypes.func.isRequired,
 	};
 };
+
+})();
\ No newline at end of file