js/lifelog.js: cache entry for callback function