Remove unnecessary calls to console.log()