Fixed js-URLs in templates to fix sites hosted in subdirectories