Update snippet.js