Make the center position compatible with IE8

Since innerWidth is supported by IE9+