IE10 compatibility: adding console.debug

Support for console.debug was added in IE11
http://msdn.microsoft.com/en-us/library/ie/dn265066(v=vs.85).aspx