PHP for URL to JavaScript. Partial auto-plot.