started linked list in javascript