The fun thing about ECMAscript is the language spec says the host environment can inject whatever it wants into the root context so if you have control over the engine and the default stuff isn't quite cutting it for your application, you write what you need in a more suitable language and you can still use script to hook the pieces together.