When editing by function pass through the xmljs object so that the invoked function can have access to libxmljs functionality.
Merge pull request #2 from mikejr83/master

EditByFunction has Access to LibXmlJS object