Change to JQuery model to create chart.