An Object.keys replacement, in case Object.keys is not available. From https://github.com/es-shims/es5-shim