Update snippets.js