diff --git a/webgl-obj-loader.js b/webgl-obj-loader.js
index <HASH>..<HASH> 100644
--- a/webgl-obj-loader.js
+++ b/webgl-obj-loader.js
@@ -1,4 +1,4 @@
-(function (window, document, undefined) {

+(function (window, undefined) {

   'use strict';

   // Thanks to CMS for the startsWith function

   // http://stackoverflow.com/questions/646628/javascript-startswith/646643#646643

@@ -375,4 +375,4 @@
     gl.deleteBuffer(mesh.indexBuffer);

   }

 
-})(this, document);

+})(this);
remove unused reference to document so you can use this lib in a worker