added return for createElement/appendChild action

This allows one to keep track of the
element last inserted.

Which I found quite handy. :grinning: