Delphi Find Index Of Item In Array In Js