almost finished WS JS API section