updated callback checking for repo.js