Make the center position compatible with IE8
Since innerWidth is supported by IE9+
Merge pull request #5 from lok0919/master

Make the center position compatible with IE8