I'm trying to add some javascript source code into a textarea dynamically but it's not letting me set a variable with the source code.

I have the following code:
<script type="text/javascript">
function getEmbedCode(inKey){
	embedCode = '<script type="text/javascript></script>';
The </script> acts as an actual script end and doesn't allow the variable to have that in it.

Any suggestions?