Cardiff's Perry Ng leaped into the air and tucked away a neat near-post header to put his side ahead against Millwall.