Fixed up issues in Facebook and D3 libraries