support setting the value of a file input

Fix #927 . Users can do this to set the input:
var f = new File('/path/to/file', 'name');
var files = new FileList();
files.append(f);
document.getElementById('input0').files = files;
Don't bind the current shell when create the new-instance Window

Fix #948