Added window.resize() hack back in