code test. linkedlist js implementation