Refactor displayLines and displayStations functions to use _.each instead of for loops.