LinkedList class replaced with JS built-in functionality