Add parent pointer to each html element