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 (see comments on http://ckeditor.com/addon/mediaembed). 
This patch should fix that.

Also added missing var so this plugin won't leak variables.