jq events and iframe tidy up