Dispatch event when initialized

Made an event "swal:init" that you can listen to in case you want to display the modal on document load, this way you can just put it in 
document.body.addEventListener("swal:init", function() { swal("Head", "Body") })