Javascript implementation of Facebooks bigpipe