learning javascript through zelda clone