another failed attempt at a GD javascript timer