A Javascript based adventure game system