JS: Get rid of console.log statement