2013-03-13, 10:30:35
It would probably be better to define a js variable in your theme head.
<script>...
var theme_root = '<?php get_theme_url(); ?>';
</script>
<script>...
var theme_root = '<?php get_theme_url(); ?>';
</script>