data structures implemented in javascript