avoid checking callbacks to be 'function' since we know they are, greatly simplified the iframe handler code