Incorporated runtime document as section 2; new section for events; better layout for Javascript API