remove console.log and fix the host variable under internet explorer