add parameter to embed css in js
move generation of css
embed CSS