collect data from onData event and parse it onEnd

I had the problem that the response was cutoff because the stream wasn't completed in the on.('data', ..) event.