cross-domain communication using history.length