Python Array Find String Javascript Definition Functions