Updated to eliminate IE8 errors