Fix order of onload and setting src of iframe