Removed console.logs.Fix for IE works.