transform css to string that can be inserted by js