add IE8 compatibility shim (closes #30)