This can probably be replaced with
```js
$elm.[ajaxType]( content ); 
```