simple linked list in javascript