default variation javascript fix