I just created a web page that uses a lot of JavaScript to build a fancy form that helps build an build the object/html behind an mp3 player for a user.  I got it working and tested in a plain-html page outside of WordPress. 

I then copied into a WordPress "page", took out the <head> tag, changed <body> to a <div>, but no luck. 

Can it even be done? 

I also want to use a small javascript to open up a video-player in a new small browser-window.