Added javadoc to dom and events package + fixed dispatching load event.