Teenager Kenan Yildiz netted on his first start and Dusan Vlahovic scored late on as Juventus beat Frosinone 2-1 in Serie A to return to winning ways.