fixed jquery1.9 html parsing errors

when a server does not have output buffering and outputs newlines before
html fragments , jquery will not parse as html for security ( although
this is back in 1.10 ) I added fixes for this to make sure we are safely
parsing html and not auto selectoring them on ajax responses.