The goal of this script is to read a number from a page element every X seconds and create a "count-down" effect.
On this page there is a number which will update periodically via AJAX: [url removed, login to view]
This may happen randomly throughout the day (at present this happens on average 1500 times a day). If you go onto this page a wait a few minutes you should see this number reduce. The problem is that this reduction is hard to notice.
The goal is to create a greater sense of downward movement via a client side script. For example if the number X starts at 100.9988 and then drops to 100.9968 a minute later, then we can fill that minute with a more gradual reduction of X (from the clients point of view), this number could be Y. This means that at 30 seconds Y would be 100.9978 and at the full minute reach 100.9968 iterating through each possible number on the way. An even greater sense of movement could be achieved if another decimal place were added to X so that we start with 100.99880 and finish with 199680 (as this might be desirable the script should be able to deal with relatively large floating numbers).
As you would be taking a sample of X every 30 seconds or so the actual movement of X will be unpredictable, of course it could be entirely static during this time, in which case Y would also have to remain static.
Hopefully this is quite clear to everyone, I'd be happy to answer any questions.