Expanded more link javascript to a coffee class and explained helper function with comments and specs