Add resize command to jQuery