Simple javascript implementation of a doubly linked list.