Chip-8 interpreter written in Javascript