fixed sandbox getWindow and getDocument losing the iframe reference in chrome