applied json.dumps to graph data
removed modal stuff since it was interfering with time series generation
removed include figuretab, it was interfering with time series generation
added if statements to data/figuretabs
updated figuretan code with javascript function to generate time series