How to call Javascript from a Transition form

I have a Javascript code in "JavaScripts" tab of transition form, but it didn't work after deploying.

I also defined the columns "COUNTER", "REASON" (Database Field Name) in the primary table.

Do I miss something?