Cleaner getPackageJson call in github.js