Python Find Object In Array Javascript Append