did you try without setTimeout function?
caz right after self.setElement(o) the element is rendered.