Obtain rootElement dynamically
Merge pull request #58 from gordon--c/root-element-fix

Obtain rootElement dynamically when appending modal