diff --git a/Resources/Scripts/plugins.js b/Resources/Scripts/plugins.js
index 9bde979a..f7684832 100644
--- a/Resources/Scripts/plugins.js
+++ b/Resources/Scripts/plugins.js
@@ -43,12 +43,10 @@
     element.id = "plugin-"+pluginObject.$id+"-"+Math.random().toString(36).substring(2, 7);
     document.head.appendChild(element);
     
-    var obj = {
+    return {
       insert: (rule) => element.sheet.insertRule(rule, 0),
-      remove: () => $(element).remove()
+      remove: () => element.remove(),
+      element: element
     };
-    
-    obj.element = element;
-    return obj;
   };
 })($TDP);