function loadScript(url) {
  var script = document.createElement('script');
  script.src = url;
  document.body.appendChild(script);
}

function loadStylesheet(url) {
  var link = document.createElement('link');
  link.href = url;
  link.rel = 'stylesheet';
  link.type = 'text/css';
  document.head.appendChild(link);
}

loadStylesheet('1.css');
loadScript('1.js');