[browser defs] Add Event.prototype.type
[browser defs] Better docstring for window