typecasting dimensons so IE8 doesnt get a NaN and later sets this as a css value, which produce JS errors. Stuff like medium as value for borders leads to issues here