Update

- put the resize function at the end of js