Added getPackageJsonFromUrl function