Use the new bower.json, refactor readJson func.