diff --git a/src/jio.storage/xwikistorage.js b/src/jio.storage/xwikistorage.js
index 7d939b85b17e011ca59b79e509cf3d38684d95f9..c1b1de7a67194077d096a3871a36fb3ee93aa8ea 100644
--- a/src/jio.storage/xwikistorage.js
+++ b/src/jio.storage/xwikistorage.js
@@ -1,3 +1,5 @@
+(function ($,Base64) {
+
 /**
  * JIO XWiki based storage. Type = 'xwiki'.
  * Edits XWiki documents as html using html editor.
@@ -326,4 +328,6 @@ var newXWikiStorage = function(spec, my)
 
     return that;
 };
-jio.addStorageType('xwiki', newXWikiStorage);
+jIO.addStorageType('xwiki', newXWikiStorage);
+
+}(jQuery,Base64));