an implementation of the linked list data structure in JavaScript