Fix removeChild failing under Karma
Merge pull request #110 from alancutter/karmaTestingRemoveChild

Fix removeChild failing under Karma