better scope when checking for config.js