Added support for events, made window.location Async (and based upon XHR), added trigger for window.onload.