Udpate JS hooks