Fixing getBoundingClientRect for IE