Nice work, glad you got it working! The renderStats
function must be called every time you update the stats.
Yes what you can do is create a new div on the same position, similar to the way the ghost is created.
You should make sure you have a blank tile in the tilemap and assign it to the space character like “ “. Then you can create the empty sprite and put a number inside it:
const number = createJuiceSprite([p._x, p._y], " ", "float-up");
number.innerHTML = "23";
That should create a number 23 which floats up and then disappears.