js hook update