Different Data Structures In Javascript