The script needs to be adapted to changes in yahoo's website...
It searches for the word "Currently" in the dumped page... as it doesn't exist, some of the scripts variables don't get properly set.. in the end, kaboom.
Moral of the story: Don't write scripts that assume a page will stay the same forever.
Yahoo offers RSS/XML streams, try writing a script to parse that mess..