IE8 Bugfix
Fixed a bug when IE8 elem[ type ] triggers "Object doesn't support this
property or method" by checking typeof elem[ type ] against "unknown".