Fix JS path in template