Update cache name for JS file when setting a template