image2

image2

Figure 2. JavaScript code used for reading and writing memory