Update metadata on change rather than on keyup

Fixes one of the bugs in #18