php converted to javascript
<p>I'm echoing a variable that adds my links (outputting a number) and totaling them. Since it's PHP it loads first and makes my site wait until finished loading.  Can this be written in jQuery?  I'm very new to JavaScript.</p>

<pre><code>&lt;?php  

 $a = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.batterytheme&amp;output=number');
 $a = str_replace(",", "", $a);
 $b = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.connectiontheme&amp;output=number');
 $b = str_replace(",", "", $b);
 $c = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.icontheme&amp;output=number');
 $c = str_replace(",", "", $c);
 $d = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.percenttheme&amp;output=number');
 $d = str_replace(",", "", $d);
 $e = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.statusnotifiertheme&amp;output=number');
 $e = str_replace(",", "", $e);
 $f = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.cnote&amp;output=number');
 $f = str_replace(",", "", $f);
 $g = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.iaccescnotekb&amp;output=number');
 $g = str_replace(",", "", $g);
 $h = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.cnotelite&amp;output=number');
 $h = str_replace(",", "", $h);
 $i = (301); //From c-note and Multi Lock Screen Theme on Rock Your Phone
    $j = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.multibrowsericon&amp;output=number');
 $j = str_replace(",", "", $j);
 $k = file_get_contents('http://modmyi.com/cstats/index.php?package=com.modmyi.changeappstoreiconwithinstallous&amp;output=number');
 $k = str_replace(",", "", $j);

 $z = $a+$b+$c+$d+$e+$f+$g+$h+$i+$j+$k;
 $z = number_format($z);
 echo $z;

?&gt;
</code></pre>
