fix IE8 problems with object declaration