Repaired Reference Errors for Chip8

changed bad reference to memory (tested with index2.html)