Changing Data without changing Variable

This is because of the way JavaScript passes objects around by reference...

This previous thread explains the details and how to handle it - Global memory updates even if I don't "save" back to it