use iframe load event instead of timeout
remove useless attributes