The A4 Engine is a small Javascript game engine designed to run simple action RPGs. It was specifically designed to experiment with procedural content generation techniques in RPG games. The A4 Engine was designed and developed by Santiago Ontañón. You can see the documentation here (mostly a reference page, don't expect any tutorial).