I started around the same age. Though sadly not with JS and modern browser tech.
The most difficult concepts in use here are arrays and function calls. So quite possible for a clever 9 year old.
If he was using an entity component system or monads I would be more skeptical