Memory issues or too much console.log()?