Here's an example of an implementation that someone else did of the Cruise Elroy mode in their pacman clone.
https://github.com/filippovitale/pacman/blob/master/src/elroyTimer.js
Blinky speeds up twice depending upon how many dots you've eaten, these modes are called Cruise Elroy.