code: function asyncLoadJs(src) {
    if (!isBrowser()) {
      _logger2.default.error({
        description: 'Document does not exsist to load assets into.',
        func: 'asyncLoadJs', obj: 'dom'
      });
      throw new Error('Document object is required to load assets.');
    }
    var js = window.document.createElement('script');
    js.src = src;
    js.type = 'text/javascript';
    window.document.getElementsByTagName('head')[0].appendChild(js);
    _logger2.default.log({
      description: 'JS was loaded into document.', element: js,
      func: 'asyncLoadJs', obj: 'dom'
    });
    return new Promise(function (resolve) {
      window.setTimeout(resolve, 200);
    });
  }
docs: @description Appends given javascript source to DOM head.
  @param {String} src - url src for javascript to append