create passing example for new linked list spec in javascript