Solved! Go to Solution.
You can check the below link to see if that is helpful
As per my understanding use of both javascipt and groovy not possible in the tool at the same time. Can only use one at a time.