Trim ajax response string

The javascript is broken with [jQuery 1.9](http://jquery.com/upgrade-guide/1.9/#jquery-htmlstring-versus-jquery-selectorstring). The problem:

```
jQuery(htmlString) versus jQuery(selectorString)

Prior to 1.9, a string would be considered to be an HTML
string if it had HTML tags anywhere within the string. This
has the potential to cause inadvertent execution of code
and reject valid selector strings. As of 1.9, a string is only
considered to be HTML if it starts with a less-than ("<")
character.
```

To make a long story short, this won't work anymore:

```js
$('           <div>    </div>          ');
```

Trimming the ajax response string however does the trick:

```js
$($.trim('           <div>    </div>          '));
```