I found that the JS is activate when de user accept the task. and is not automatically when the WF is loaded