I read through chapter 6 and worked through the project in chapter 7. I rewrote all the code on chapter 7 and got through the artificial stupidity problem.
I had trouble animating my world in my own browser but I pasted the artifical stupidity code in the bottom of my javascript file.