Update memory.js

fixes #376
Merge pull request #377 from pocesar/master

Update memory.js, removed `new`