Angular JS upgrade, JSON caching and graph updating