three.js extension to help you handle window resize