Fix IE 8 bug with insertAfter.

If the second argument is undefined, IE 8 throws an "Invalid argument" exception. Instead, use appendChild.
Merge pull request #175 from rviscomi/ie8fix

Fix IE 8 bug with insertBefore.