The JavaScript for the plots has been obtained with Julia using:

savefig("myplot.html")