There are plenty of languages that provide that same benefit of straightforwardness while also lacking warts and being even easier to embed; for example Lua, which was designed with express purpose of simplicity and ease of embedding.
The real answer is probably that in 2003 JS looked more interesting/good enough that it was chosen in this case.