javascript jQueryUI Resizable window resize bug fix (jQuery)