I think you are going to find that the script is not refreshed until the internal cache runs again. Or using the refresh option on the browser.
Somebody here posted a workaround for a similar issue with banner rotators. Can't find it now but I think it was Sirdude.