document.addEventListener("DOMContentLoaded", function pageInit(event:Event){ console.log("Frontend initialized."); });