Update jsFunctions