Added code for dynamic creation of a link to an element within the current page