Hi Heather,
You can put javascript in a Custom HTML box on a landing page for anything that's page specific. If it's a load-bearing piece of your architecture, you may want to consider adding it to your template.
There are some great in-community resources
here with common jQuery use cases in Marketo.
Good luck!