better var names - thanks @lvh

Also parsing json while fetching nodes instead of later