Javascript syntax doesn't (usually) NEED semi-colons at the end of statements but it makes it clearer.
From the Flappy Dino Tutorial page 4 -
OnLoad() – This is the first thing will run when the game is
launched, this is where graphical objects, sounds,
backgrounds and physics should be created.
OnReady() – This is executed when OnLoad() function has
finished running. Here the graphical objects, backgrounds,
sounds etc. are added to the GameView with their
appropriate settings. Once everything has been set up, calling
the ‘gfx.Play()’ function will start the game running.
OnAnimate() – This function is repeatedly called, around 60
times per second. This is where you update the position of
backgrounds and graphical objects.
As far as I'm aware, /Sys/Img/Sky.jpg is on all devices (may be worth checking).
The two Desyrel files need to be in the Img folder within your project/app
(click the Assets icon, 3rd from the left on the bottom row, or under the pencil on the IDE).
and load to DS (or unzip it) you will find replay.png.
If you use debug (little beetle icon in the bottom row) you may get better messages
(or if you are using a PC with the IDE then see the debug window on the right).
To narrow down a bug you can comment out lines and/or insert alerts.
// txt.SetText(word)
alert(word)