Rewrite visualisations to use JSON and Ajax requests.