// ResizeScript with native Javascript