Fix JSPE copy to input functionality.

This also decouples the JSPE from the exactly DOM structure used for
input windows. InputWindows now provide a method to set their content.
We could probably go further by having an observable that can be set
instead.