Remove duplicate function definition

getDOMDocument is already defined a few lines below, using the more standard "self" reference rather than "this".

Noticed in passing...