Graphical Adventure Game Engine - Javascript