parent function to return DOM parent node of an element