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.
Just edited my first comment above. No need to change this -- it's fine as-is.