Update memoize.js

reduce unnecessary assignment