a pure javascript http parser