added jshint and prevented breaking of stream on js error