Hydrodynamics of electromagnetically controlled jet oscillations