Javascript Group Array Of Objects Pythonanywhere Api