Sorry, I don't have CP8 on this computer and can't really look at it until the weekend. I have a feeling that this won't work until all of the needed files are loaded. I usually trigger functions from the on enter of the first slide in the project so I know everything is there.
What is it that you are trying to do with the current slide? You could always execute JavaScript on enter of every slide.