Consolidate.
Implement window forwarding for body event handlers.
Compile JS strings when setting inline event handlers via element attributes.