title: In a Node app with express JS, how can I include and run a separate JS file?
body: <p>I have a javascript file that contains some functions that grab an RSS feed and save the contents in a database. I originally had it being called by the HTML page, but I want this file to instead be running in the back-end all the time (grabbing updates from the RSS feed and saving it to a database). </p>
  
  <p>My question is, how can I attach and run this separate javascript within my app? I assume it will look like this:</p>
  
  <p>In app.js:</p>
  
  <pre><code>var RSSReader = require('./public/javascripts/RSSReader.js');
  RSSReader.SomeFunction();
  </code></pre>
  
  <p>This isn't working though. Also, would variables declared in my app.js be available in RSSReader.js?</p>
  
  <p>Thanks. </p>