Javascript jQuery Method resize()