Added some more DOM handling in the JS chapter