title: Easiest way to run javascript on server side
body: <p>I have an application which runs on mobile devices such as android, and I have some third party traffic tracking js code to track the usage of my application. So everytime a user opens up my application the js code sends a ping to the 3rd party tracking server. However I'm not sure if there's an easy way to embed the js code directly into my application that's not browser based and couldn't interpret js code. So I may have to execute the js code on the server side. The 3rd party code is like this :</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://www.3rdparty.com/tracking.lib.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
     var instance = new Tracking();
     instance.run();
  &lt;/script&gt;
  </code></pre>
  
  <p>What's the easiest way to run this code on server side? </p>
  
  <p>Thanks in advance.</p>