Moved highcharts formatting logic out of the sinatra app file and into its own class