changes to support IE8 +