update js examples