For both "Execute JavaScript" actions, turn off this setting:
I think that will solve the problem. I think.
For more information, see the wiki Searching the Forum for Answers section.