Added IE 8 support for window dimensions