Hi , 

Thanks for reaching out to Adobe DTM community. This forum is dedicated for queries regarding Adobe DTM. Please reach out to forums like stackoverflow.com for any of the generic queries related to Javascript Implementation.

Thanks & Regards

Parit Mittal