add .jshintrc and .jscs, format snitch.js, rewrite accroding to jshint