The autonomic nervous system would require connection to the brain.
What you're witnessing here is the ability of the heart to generate its own action potential (electricity if you will) and distribute this through the AV node down through the Purkinje fibres causing the ventricles to contract.