ecma script wrappers