Refactored linklist.coffee