[eluser]jayrulez[/eluser]
set the image location as a variable in javascript in your headers like
[script type="text/javascript"]
var img_path = 'http://mydomain.com/app/images/';
[/script]
and in your javascripts where you use the images just use
[img src="'+img_path+'image.extension" alt="img text"]
replace [ with < and ] with >