Uses AJAX to put up the sample chart