A JavaScript Linked List Implementation