update js example