fixes weird IE8 window is not window error that was breaking binding to the window