Update snippetFunctions.js