basic algorithm for adding accordion entries

shows dom construction, also,