Corrects document.importNode, fixes #317
Merge pull request #318 from sorvell/master

Corrects document.importNode, fixes #317