window.Chip8 = require('../../src/chip8');
window.chip8 = new Chip8(function() {console.log('beep')});

console.log('chip8 is here!');

document.addEventListener('DOMContentLoaded', function() {
   Chip8 = require('../../src/chip8');
   chip8 = new Chip8(function() {console.log('beep')});

   console.log('chip8 is here!');
});

Load Chip8 after DOM ready
Load Chip8 after DOM ready
