util.createInstance fixed for IE support