addition of getLeagueID function to globs.js