Javascript. Simple Singly, non-circular LinkedList