Fixed console.log() on IE9 not defined + angular-cookies not well set