Es muss korrekt heißen:

code:
 function timef()
{
time_factor = 0.5;
}

Allerdings gehören solche Fragen doch eher ins Beginner Forum.