Clean up console logs before trying to refactor the js.