Sure, here's an example of a simple race game with hearts using JavaScript and HTML:
Heart Race Game
To use this code, save it as an HTML file (e.g., `racegame.html`) and place a heart pictogram named `emozi_all/heart.png` in the same directory as the HTML file. When you open the HTML file in a web browser (using a smartphone for example), it will start the race game. Press the spacebar to move the heart and try to reach the finish line. When you reach the finish line, an alert will pop up with a congratulatory message.