Dynamical structure factor of the J1-J2 Heisenberg model in one dimension: The variational Monte Carlo approach