Jquery Loop Over Array Python Example Elif