I discovered what happens: I need to load at least one url before loading the custom js functions. I loaded http://example.com before the custom js functions worked fine in "Run Mode".
So simple...
Thank you all
when editing any function, sometimes we want to test by not activating certain actions/functions .. but not deleting them .. because if we delete these actions/functions, we have to put them back again after testing.
can we put them on 'de-activate' mode? .. just like when you test a batch file, you can de-activate a command line by making it into a 'comment' instead