modified globs.js. added the function fetchleague