Rebuilt resizing with jquery.