main.js: react all the *mem