update js page