parses html into some native json-like hell