Removed useless loop that triggers access violation errors in Firefox.

This plugin was blundering through the window.frames array for no reason,
triggering access violation errors (and breaking) under certain conditions
in Firefox. This patch should fix that.

Also added missing var so this plugin won't leak variables.
Merge pull request #6 from csosborn/master

Removed useless loop that triggers access violation errors in Firefox.