Javascript Get Minimum Value In Array Of Pointers In Struct