Get CSS selectors of DOM elements and vice-versa