[js] PWF, inline docs

* Added inline docs to pwf base script