Implemented Node:appendChild

Hi Craig,
I re-implemented appendChild along your lines of thinking.
The implementation is much simpler. :-)
Please review and pull if deemed better.
I'm not sure what the purpose of this assertion is, or why it's repeated 4 times...