Added league method to leagues.js