Handling window.resize. Fixes #7