A single-line, short regex example:
var body = f.toString().match(/^[^{]+\{(.*?)\}$/)[1];
If you want to, eventually, eval
the script, and assuming the function takes no parameters, this should be a tiny bit faster:
var body = '(' + f.toString() + ')()';