update ns.js in snippets