add stream support

also added a jshintrc