Fix snippets for jslint