added insertBefore and fixed parentNode on insert/remove
Merge pull request #8 from Matt-Esch/master

added insertBefore and fixed parentNode on insert/remove