Fix order in which frame scripts are invoked
Merge pull request #1480 from tschneidereit/nat

Fix order in which frame scripts are invoked