Save page source, including javascript

I need to get the source code of a webpage. I have tried to use wget and curl, but it doesn't show the necessary javascript part of the source. I don't have to execute it, only to view the source.

How do I do that?

If there's javascript in the source, it will be downloaded. If it's not shown by wget, it's not in the source.