update javascript.snip