Besides @Michael’s suggestion to use Auto>Js as a base to then do manually translation from, you may be referring to this post about custom functions in js, that might help