In-browser Towers of Hanoi game (JavaScript)