There are two different approaches you can take: 1) boil and cool the syrup several times until it reaches your preferred consistency or 2) add a little cornstarch to it while it's simmering.