tidied up javascript, added function to dynamically load iframes on click rather than all at once.