updated the onresize call to a jquery call