Williams shines as Scarlets prevail