The West Indies lost two wickets, but smashed 14 runs from their final over, as they posted 311-6 in their ICC World Cup match against Afghanistan.