var javascript = "alert('hello');";
eval(javascript);
This will load the JavaScript from a string, but be warned that this is highly insecure and not recommended. If a malicious process ever interfered with your string of JavaScript, it could result in security issues.
As far as CSS goes, you can append a style tag to the page using jQuery, like so:
$('head').append("<style>body { background-color: grey; }</style>");
Or, for the JavaScript purists:
var s = document.createElement("style");
s.innerHTML = "body { background-color:white !important; }";
document.getElementsByTagName("head")[0].appendChild(s);