Call Node.insertBefore with null rather than undefined

IE10 will throw an error if Node.insertBefore is called with the second
argument
as null rather than undefined.
Work around browsers that do no support selection.extend (IE)
Merge pull request #151 from peitschie/ie10-fix-set-1

Internet explorer 10 compat fixes (set 1)