Adding the list function to mem.js
Adding unit test for new mem.js list function.