If you can apply a class to that JS-embedded div with JavaScript then you can simply create that same class name in designer by applying it (temporarily) to any random div in the designer. After you have styled the random div with that same class name to your liking, delete the div. This keeps the class in the available CSS and will attach to your JS embedded div automatically.
That’s how I would do it in theory anyway.
JFly