if(t >= window.primaryLayer.height)
{
   t = -fore.height;
   l = Math.random() * window.primaryLayer.width;
}

で画面下まで進んだら画面上まで押し戻すって処理をしている
あとは分かるだろ