Debouncing window.resize() 
From http://www.paulirish.com/2009/throttled-smartresize-jquery-event-handler/