my singly-linked list in javascript