ie8 compat for isElement

In IE8 e.appendChild is of type `object`.
added parens
merged the ie8 fix
0.2.1