add principal component analysis (pca); check $.jqplot existence when invoking