localizes script and updates images URLs in CSS