Javascript linked list playground