You can use Sourcer, it allows you to put any script (PHP, HTML, JavaScript, etc) in a module position or article.
Not entirely sure what you mean. Why don't you just create a Custom Module and paste the script in there?