Sri Lanka claw back as Mendis sparks West Indies collapse