jshint and javascript snippets