In a skillet, whisk together the pineapple juice, sugar and cornstarch until dissolved. Place over high heat and bring to a boil, whisking constantly. Whisk until thick, about 1 minute. Remove from heat and cool to room temperature.