index of generic js validation