Add D3 demo to index page / refactoring