Fix JS for Template V1.5