document.addEventListener("DOMContentLoaded", (event) => { window.cacheBust = true; require('Game'); require('System'); }); var debugging = {}; document.addEventListener("JSContentLoaded", (event) => { let system = new System(); let game = new Game(); system.create("game", game, "#000000"); debugging.system = system; debugging.game = game; });