Adds Interactive.remove() method for both java and javascript