Dynamical structure factor of the Frenkel-Kontorova model