Submit plot-data with Ajax (to prevent browser history)