Quick fix for possible looping while iframe iteration, simplify ZoomToElement function (from coderus)