update js output