add callback to key-value example

I got a js error when I didn't have this callback passed to the close function.