code for book Dom Scripting.