js page change fix