Examples in the documents are using Javascript
When I want to learn I find it hard to convert the code in the example to a code that I can run on the SLPDB web view
First issue is that the web explorer seems to require double quotes "
not single ones '

other issues include commas ,
and variables.
Would be useful to provide a version that would work out of the box with the web query.