added customised version of D3.  Reduced file size by 60kb!