Added Doc.JS(), removed focusUpdate-rig and added Input.selectAll().
Moved setting of event attrs until the event is registered.
Replaced dirty unload and callbacks with JS.