Update Javascript Call Cpp functions