adds chapters as JSON