Memory written in vanilla JS