Loading the d3 script from UNPKG puts a d3 variable in the global namespace. (Take out "browse" from that link to load it.