javascript function index of any one character from a string?