I made the foundation for an RPG a while ago and just started working on it gain. I want to share what I have so far in the spirit of OS and since the code is so modular that I feel like many will find it useful. The features are limited but the code is easy to navigate and extend. If you do make any interesting extensions, feel free to merge them into the master branch.

Here's a live demo (at the bottom of the page): http://dandelionenglish.org/students/

And here's the code: https://github.com/sbiermanlytle/FlashRPG

Enjoy!