[BUGFIX] Allow for alternative rootNode for getElementById

Fixes issue mentioned in #208 after merge.  Also adding npm-debug.log file to gitignore.
this could even be passed into the constructor in `setup`, imo