http://sphere.sourceforge.net/
A free software RPG engine which uses standard Javascript for scripts and have an easy-to-use game creating tool.
Here's a demo game which used this engine (which has dungeons, cities and Conditional Turn-based battle):
http://www.happyfamilylife.net/T&E/files.htm