update js routing