Added AJAX functions to support asynchronous data/chart plot