ARGH - put wrong contentWindow reference in previous commit - should now be fixed