Python Array Contains String Javascript Functions