javascript version of the Atari classic