Linked list in JS with @andreecmonette