Ternary Contour plot.js

Hi all,
I want to be able to plot a contour ternary which I have been able to do with
figure_factory.create_ternary_contour in python as shown the the tutorial. However I wanted this is plotly.js, which has scatterternary, but no Z to give contours. Is there a a way to do this in plotly.js?