Cleans up iframe update code.