console.log patch for IE and class _debug or _d to use instead of console.xxx functions. Minimised version included