Remove console.log and save cookie on current path