Fix bug which causes initialize to never be called if d3 is already loaded in page

Add "else" statement to ensure initialize is still called in the case that d3 is loaded.