convert a css file into javascript to inline "style" object