Hi,
Last year I was using your book in one of my courses and noticed that this code no longer worked. I looked for answers in the Julia GitHub repo, and they helped me out rewriting the code so it worked with Julia's current plotting functions.
You can check this in the following issue: JuliaPlots/PlotlyJS.jl#408