Fixed bug in advancedsearch javascript.

The advanced search used the array function `remove` which was provided by `ext-js`. Since `ext-js` is no longer included by default the function fails.

The `remove` function has been replaced by a plain js variant.

@lukasgraf