prototype js for adventure game