Fixed iframe javascript in FireFox for tests