diff --git a/index.html b/index.html
index f09c48c031..1c0833d26b 100644
--- a/index.html
+++ b/index.html
@@ -470,7 +470,7 @@ THE SOFTWARE.
code += "var " + inp.name + " = /* var of type " + inp.type + " here */ ;\n";
});
- code += "\nvar " + contractName + "Contract = web3.eth.contract(" + interface.replace("\n","") + ");"
+ code += "var " + contractName + "Contract = web3.eth.contract(" + interface.replace("\n","") + ");"
+"\nvar " + contractName + " = " + contractName + "Contract.new(";
$.each(funABI.inputs, function(i, inp) {