JavaScript Roguelike using ROT library