Fix Interactive.remove() method for javascript

I haven't tested the java version of the method. Anyway, the javascript version was broken.

Also, I'm still trying to understand the need for "return ae" in the method, as it always returns null. Should it return the input object when it's a single one?