Converting <script> to a seperate JavaScript file
<p>I want to convert some code twitter gave me to a separate .js file. This is what they gave me.</p>

<pre><code>     document.write("&lt;script&gt;
new TWTR.Widget({
  version: 2,
  type: 'search',
  search: '@BigNotch',
  interval: 6000,
  title: 'Follow Me On Twitter',
  subject: 'BigNotch',
  width: 180,
  height: 300,
  theme: {
    shell: {
      background: '#17d1ff',
      color: '#ff8fda'
    },
    tweets: {
      background: '#ededed',
      color: '#383838',
      links: '#ff8aed'
    }
  },
  features: {
    scrollbar: false,
    loop: true,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: true,
    toptweets: true,
    behavior: 'default'
  }
}).render().start();
&lt;/script&gt;
</code></pre>

<p>I created a separate .js file and just copied what was between the </p>

<blockquote>
  <p><code>&lt;script&gt;&lt;/script&gt;</code></p>
</blockquote>

<p>and pasted it into the .js file. Is this the correct way to to this?</p>
