Is there any easy way to execute a piece of javascript replied from HTTP server ?

Is Webkit too big for this problem ? but it is integrated in Qt instead of spidermonkey engine.

Thanks