Change timelines object to be array instead of object