Doubly Linked List ADT for browser and nodejs