Tracery: a story-grammar generation library for javascript