Swansea City skipper Ashley Williams has hailed the "courage" of Jonjo Shelvey following his performance against Liverpool on Monday night.