Fixing a small bug with frame handling and script execution.
"window" and "document" context objects were incorrectly referenced in
arguments array.