apply css file to javascript elements code example
Example: js add css to document
document.querySelector('head').innerHTML += '<link rel="stylesheet" href="styles.css" type="text/css"/>';
document.querySelector('head').innerHTML += '<link rel="stylesheet" href="styles.css" type="text/css"/>';