var ENC = new function(){ this.baseurl = 'http://www.gokuscorner.com/'; this.init = function(key, brokerUrl){ this.apiKey = key; this.brokerUrl = brokerUrl; this.start(); }; }; // jQuery makes life easier. So I used it, but it's not a strict dependency if you want to rewrite code. /*if (window.jQuery === undefined) */document.write("