diff --git a/.gitignore b/.gitignore
index acdabd1..8a14284 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,5 @@
 /images/
 /tests/templates/
 /dist/
-/build/tmp.js
\ No newline at end of file
+/build/tmp.js
+index.html
\ No newline at end of file
diff --git a/index.html b/index.html
index dd61c23..cea94d0 100644
--- a/index.html
+++ b/index.html
@@ -32,7 +32,7 @@
                  
                  
                     $(this).unbind('click');
-                    html2canvas($('body').get(0),{
+                    new html2canvas($('body').get(0),{
                         logging:true,
                         ready:function(canvas){
                             saveCanvas = $(canvas).css('position','absolute')