Python Array Contains String Javascript Methods