Parsing HTML response and code reogarnization