update syntax js; update ps doc