Javascript Get Object From Array Of Pointers In C