Fixed IE8 compatibility

<= IE 8 does not support Object.keys()