reset variants JS function missing - fix