add snippet and string.js