Traverse through DOM. get content and position