text: module.exports.whenEntityLoaded = function(entity, callback) {
    if (entity.hasLoaded) { callback(); }
    entity.addEventListener('loaded', function () {
      callback();
    });
  }
  
  module.exports.createHtmlNodeFromString = function(str) {
    var div = document.createElement('div');
    div.innerHTML = str;
    var child = div.firstChild;
    return child;
  }
  
  module.exports.getNetworkOwner = function(entity) {
    var components = entity.components;
    if (components.hasOwnProperty('networked-remote')) {
      return entity.components['networked-remote'].data.owner;
    } else if (components.hasOwnProperty('networked')) {
      return entity.components['networked'].owner;
    }
    return null;
  }
  
  module.exports.now = function() {
    return Date.now();
  };
  
  module.exports.delimiter = '|||';