Ecmascript: the code adjusted for SEE-2.0