factor out SprayStream
Add jshintrc