removed console.logs in javascript