Fixed bug with rendition 2 of getElementParentElement, also added rendition 3

Added rendition 3 and fixed the bug when using rendition 2 - html does not have a parent node. Changed to use document.head.