memo.js initial code