I can agree this is one good reason for Javascript. I am just worried about there being too many mine fields in the language for a beginner.
The syntax, semicolons, etc are minefields.
or
The syntax, semicolons, etc can teach good habit and save a lot of headaches in the future (missed a semicolon here, missed a semicolon there.. etc)