Completed DOM and Event API examples