Simple Linked List implementation for Javascript