update js snip