I have a Google Sites page. How can I embed JavaScript code in it, without implementing a gadget and adding JavaScript code in that?
You can use the HTML Box gadget, here is where you find it in the menu:

It allows you to Insert custom HTML, CSS, and Javascript.
Caveats:
,HTML BoxHTML Box does not currently support ,, ![]()
or tags,