Refactor loadConfig to use Q.fnbind