This is Javascript port of DOS text quest game "mmheroes" http://mmheroes.chat.ru/hmm.htm (originally Borland Pascal 7.0).
Obtained by handmade decompilation, process is described at https://sharpc.livejournal.com/75856.html (in Russian).
Available at https://sharpden.github.io/mmheroes/