update JS with node api