moving mem.js to right folder + changing index to cope with it