change snippets to match jshint