Javascript execute twice

iframe