changes to the resize js