changing how to get bounding rect for IE8