Did you close your subject to block with a } ?
It seems to me you are missing it and directly create a Javascript block.
------------------------------
Vincent Beraudier
------------------------------
Original Message:
Sent: Mon October 11, 2021 08:15 AM
From: Chang Hee Ng
Subject: Error on the codes
------------------------------
C.H.N.
------------------------------
#DecisionOptimization