data structure for javaScript