added the latest version of D3 and setup error handling if there is no cookie when the load saved chart button is pressed