Added a method for storing and getting memory. Yes, I am cheating by used the base 64 encoding/decoding methods that come with the browser. I will change this later once I think of a more efficient way