fileutil.js - return hash in retrieve()