Clean up of jQuery. (window).resize works now.