removed old console.log statement on undefined object