Windies win thriller