Rendering for update with js