I have tried your example code and there was no error but the $content value is:
... </script>", I mean, the content of the script; and the elgg_view_page displays... view reply
I'm trying to do some test with the Ajax features in Elgg, but when I use the elgg.get function in a script, I don't receive any response.
With Firebug I see an error and this message: "elgg is not defined".
Is there anything else to include...