Modify `isElement` to work on a string in IE8

https://github.com/taye/interact.js/issues/45#issuecomment-49890918