fixed whitespace, removed JSONStream, removed call to create new Buffer instance, and added semicolons