Handling jsonp with buffer