JSON generator for use with TimelineJS