Return chart objects when called with JQuery