iframe js much better organized