Add shim for Object.keys
Use anonymous function to create searchProto