That's the problem right there. Right off the bat I don't see how to get around that one.
At that point you might as well just inline the css and javascript.