Js Get Index Of String Javascript Definition And Uses