Use CRM.console to prevent errors in older browsers