Uses linked-list.js instead of java.util.LinkedList