If you're fine with playing on Windows/Mac/Linux instead of in
a browser, and if you know some C++, you could go ahead and implement those things in Diablo directly. There's a reverse-engineered codebase on GitHub that the browser version is based on: https://github.com/diasurgical/devilutionX