update data js