Added backward compatibility of iFrame communication