Separating Error and Success JS handling from init.html.twig for easier customization