get_selector utility function

builds a string of the chain of parents
fixes to get_selector; nested dom util

comments mostry for get_selector method; utility function to create
nested DOM elements for jQuery testing