narrative.js makes it easy to write narrative scripts that ask a bunch of questions. It returns the answers in an easy to use form. You could pass the returned structure to some template for instance.
narrative.js is available under MIT. See LICENSE for more details.