Create stylesheets dynamically in javascript