Set up a 'templateUrl' that can be accessed within javascript file
<script type="text/javascript"> var templateUrl = '<?php echo get_bloginfo("template_url"); ?>'; </script> <!-- Other scripts --> </body> </html>