ommitted unnecessary lines in globs.js for simplification