Out of the box, you can place a content editor web part on a page and add
javascript to it. When the page is loaded, the javascript will run.
I want to create a custom web part that contains and runs javascript. This way,
I won't have to cut/paste the javascript code multiple times.
Can this be done?