update JS docs and samples