Add support for IE8

Object.keys() is not supported by IE8 so this example doesn't work with IE8