Exploring Data Structure using Javascript