fixing the way the last response html is handled from the proxy server to prevent unwanted html (ajax snippets)