Update js function call