Code climate says this deteriorates timelines.js from a D to an F.