Use Includes In Array Javascript Append Function In Python