Javascript Filter Out Object From Array Python Example Problem