I should have specified I am a beginner at this, so have no experience of using js in dynamics…