Reformat code
Remove unneeded d3 dependency. Remove broken timeout code