add ECMA script documentation. keep it together.