add callback to key-value example

I got a js error when I didn't have this callback passed to the close function.
Merge pull request #13 from drewlesueur/patch-1

add callback to key-value example