That script uses the variable shrink, which paradoxically increases with time. Just make it decrease with time, e.g. by replacing the first line with these two:
var endTime = 123; //how long you want it to take, in seconds
shrink = endTime - time;
Or make the radius the product of the time and a constant, rather than dividing the radius by time, by ...